package com.sh.data.engine.application.model.dto.normalization.standard;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author：jingchen.hr
 * @descripion:
 * @data:6/15/20222:19 PM
 */
@Data
@Schema
public class GetDicInfoByFieldNamesResponse {
    /**
     * 主键
     */
    @Schema(description = "数据标准的主键")
    private Long id;

    /**
     * 字典名称（英文）
     */
    @Schema(description = "字段名")
    private String dictNameEn;

    /**
     * 数据类型
     */
    @Schema(description = "数据类型")
    private String dictDataType;

    /**
     * 数据长度
     */
    @Schema(description = "数据长度")
    private Integer dictDataLength;

    /**
     * 允许为空 0-否 1-是
     */
    @Schema(description = "允许为空 0-否 1-是")
    private Integer allowNull;

    /**
     * 允许重复 0-否 1-是
     */
    @Schema(description = "允许重复 0-否 1-是")
    private Integer allowDuplicate;

    /**
     * 取值范围json
     */
    @Schema(
        description =
            "取值范围json：{\"valueCondition1\":\">\",\"valueRange1\":\"1\",\"valueJudge\":\"or\",\"valueCondition2\":\"=\",\"valueRange2\":\"0\"}")
    private String dictDataRangeJson;

    /**
     * 正则表达式
     */
    @Schema(description = "正则表达式")
    private String dictDataPattern;

    @Schema(description = "枚举值")
    private List<String> enumKeys;
}
